/*
 * Created on 2005-10-11
 *
 */
package com.hd123.rumba.catalog;

import com.hd123.rumba.exception.BusinessException;
import com.hd123.rumba.runtime.IBaseEntity;

/**
 * @author caili
 */
public interface ICategory extends IBaseEntity {
  public ICatalog getCatalog() throws BusinessException;

  public void setCatalog(ICatalog catalog) throws BusinessException;

  public String getCode() throws BusinessException;

  public void setCode(String code) throws BusinessException;

  public String getName() throws BusinessException;

  public void setName(String name) throws BusinessException;

  public ICategory getParent() throws BusinessException;

  public void setParent(ICategory parent) throws BusinessException;

  public String getUsedType() throws BusinessException;

  public void setUsedType(String usedType) throws BusinessException;

  public String getRemark() throws BusinessException;

  public void setRemark(String remark) throws BusinessException;
  
  public String getCodeName() throws BusinessException;
  
  public String getNameCode() throws BusinessException;
  
  public static final String CAPTION_CLASS = "类别";
  public static final String CAPTION_CATEGORY = "类别";
  public static final String CAPTION_CATALOG = "目录";
  public static final String CAPTION_CODE = "代码";
  public static final String CAPTION_NAME = "名称";
  public static final String CAPTION_USEDTYPE = "用途";
  public static final String CAPTION_PARENT = "父类别";
  public static final String CAPTION_REMARK = "备注";

  public static final String PERMISSION_EDIT = "类别.编辑权";/*"类别.编辑";*/
  public static final String PERMISSION_VIEW = "类别.查看权";/*"类别.查看";*/
}
